package com.ruoyi.supermarket.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单细则对象 sm_order_item
 * 
 * @author 李其伟
 * @date 2023-11-14
 */
public class OrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderSn;

    /** 商品货号 */
    @Excel(name = "商品货号")
    private String sku;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String skuCode;

    /** 商品标题 */
    @Excel(name = "商品标题")
    private String title;

    /** 商品副标题 */
    @Excel(name = "商品副标题")
    private String subTitle;

    /** 商品销售属性 */
    @Excel(name = "商品销售属性")
    private String spData;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String pic;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long number;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String orderNote;

    /** 店铺主键 */
    @Excel(name = "店铺主键")
    private Long shopId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderSn(String orderSn) 
    {
        this.orderSn = orderSn;
    }

    public String getOrderSn() 
    {
        return orderSn;
    }
    public void setSku(String sku) 
    {
        this.sku = sku;
    }

    public String getSku() 
    {
        return sku;
    }
    public void setSkuCode(String skuCode) 
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode() 
    {
        return skuCode;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSubTitle(String subTitle) 
    {
        this.subTitle = subTitle;
    }

    public String getSubTitle() 
    {
        return subTitle;
    }
    public void setSpData(String spData) 
    {
        this.spData = spData;
    }

    public String getSpData() 
    {
        return spData;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setOrderNote(String orderNote) 
    {
        this.orderNote = orderNote;
    }

    public String getOrderNote() 
    {
        return orderNote;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderSn", getOrderSn())
            .append("sku", getSku())
            .append("skuCode", getSkuCode())
            .append("title", getTitle())
            .append("subTitle", getSubTitle())
            .append("spData", getSpData())
            .append("pic", getPic())
            .append("price", getPrice())
            .append("number", getNumber())
            .append("orderNote", getOrderNote())
            .append("shopId", getShopId())
            .toString();
    }
}
